﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class StuCauseCipher
	{
		public StuCauseCipher()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region Paramer
		
		private double? m_Paramer;
		
		public double? Paramer
		{
			get { return m_Paramer; }
			set { m_Paramer = value; }
		}
		
		#endregion
		
		#region KeyWord
		
		private string m_KeyWord;
		
		public string KeyWord
		{
			get { return m_KeyWord; }
			set { m_KeyWord = value; }
		}
		
		#endregion
		
		#region Explain
		
		private string m_Explain;
		
		public string Explain
		{
			get { return m_Explain; }
			set { m_Explain = value; }
		}
		
		#endregion

        #region SchoolMark

        private string schoolmark;

        public string SchoolMark
        {
            get { return schoolmark; }
            set { schoolmark = value; }
        }

        #endregion

        #region 关键字
        /// <summary>
        /// 学期基本分
        /// </summary>
        public  const   string BaseScore ="BaseScore";
		
        /// <summary>
        /// 平时表现分
        /// </summary>
        public  const   string ExpressScore ="ExpressScore";
        /// <summary>
        /// 表现分上限
        /// </summary>
        public  const   string MaxExpressScore ="MaxExpressScore";
        /// <summary>
        /// 平时权重
        /// </summary>
        public  const   string ExpressWeight ="ExpressWeight";
        /// <summary>
        /// 期末成绩权重
        /// </summary>
        public  const   string TermEndWeight ="TermEndWeight";

        #endregion

		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			StuCauseCipher castObj = (StuCauseCipher) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 34;
			hash = hash * 34
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}